package com.cee.admin.modules.sys.controller;

import com.cee.common.web.result.Result;
import com.cee.domain.modules.sys.entity.SysConfProvince;
import com.cee.ds.modules.sys.service.ISysConfProvinceService;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.cee.admin.common.BaseController;

import java.util.List;

/**
 * <p>
 * 省份表 前端控制器
 * </p>
 *
 * @author hys
 * @since 2024-01-25
 */
@RestController
@RequestMapping("api/sys/config/province")
public class SysConfProvinceController extends BaseController {

    @Autowired
    private ISysConfProvinceService sysConfProvinceService;

    @GetMapping("list")
    @Operation(summary = "获取所有省份集合")
    public Result<List<SysConfProvince>> list() {
        return success(sysConfProvinceService.list());
    }
}
